package com.itheimaoa.service.process;

import java.util.Map;

import org.jbpm.api.task.Task;

import com.itheimaoa.domain.privilege.Employee;
import com.itheimaoa.domain.process.Apply;
import com.itheimaoa.domain.process.Audition;
import com.itheimaoa.domain.process.Qualification;
import com.itheimaoa.domain.process.Resume;
import com.itheimaoa.domain.process.Test;
import com.itheimaoa.domain.process.Exam;
import com.itheimaoa.service.base.ICommonService;


/**
 * 处理申请
 */
public interface IApprovalService extends ICommonService<Apply> {
	/**
	 * 自荐信
	 * @param eid
	 * @return
	 */
	Map<Resume, Task> listResume(String eid);
	/**
	 * 入学测试题
	 * @param eid
	 * @return
	 */
	Map<Test, Task> listTest(String eid);
	
	
	/**
	 * 入学考试资格
	 * @param string
	 * @return
	 */
	Map<Qualification, Task> listQualification(String eid);
	/**
	 * 入学考试
	 * @param eid
	 * @return
	 */
	Map<Exam, Task> listExam(String eid);
	/**
	 * 面试
	 * @param eid
	 * @return
	 */
	Map<Audition, Task> listAudition(String eid);
    /**
     * 处理自荐信
     * @param employee
     * @param resume
     */
	void doResumeApproval(Employee employee, Resume resume,String taskId);
    /**
     * 入学测试题
     * @param employee
     * @param resume
     */
	void doTestApproval(Employee employee, Test test, String taskId);
	/**
	 * 入学考试资格
	 * @param employee
	 * @param qualification
	 * @param taskId
	 */
	void doQualificationApproval(Employee employee, Qualification qualification, String taskId);
	/**
	 * 入学考试
	 * @param employee
	 * @param exam
	 * @param taskId
	 */
	void doExamApproval(Employee employee, Exam exam, String taskId);
	/**
	 * 面试
	 * @param employee
	 * @param audition
	 * @param taskId
	 */
	void doAuditionApproval(Employee employee, Audition audition, String taskId);
	/**
	 * 安排面试时间
	 * @param employee
	 * @param audition
	 * @param taskId
	 */
	void doViewApproval(Employee employee, Audition audition, String taskId);
	
	

}
